/**
 * 用于管理所有的api请求路径
 */
import {get, post } from './request'

//登录
export const login = (params) => post("/user/login", params)
    .then(res => {
        return res;
    }).catch(error => {

    })

//查询首页banner
export const getBanners = () => get("/main/getBanners")
    .then(res => {
        return res;
    })
    //查询首页推荐列表
export const getHotList = (params) => get("/main/getHostList")
    .then(data => {
        return data;
    })

//查询列表页面的所有信息并且带上条件查询
export const getInfoList = (params) => get("/getInfoList")
    .then(data => {
        return data;
    })